<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../../rollup/dist/monitor.js"></script>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
      monitor.init({
        url: 'http://localhost:9010/reportData',
      });
    </script>
  </head>
  <body>
    <div id="app">{{ message }}</div>
    <script>
      const { createApp, ref } = Vue;

      createApp({
        template: `
          <div>
            {{ message }}
            <ul>
              <li v-for="item in arr" :key="item">{{ item }}</li>
            </ul>
          </div>
        `,
        setup() {
          const message = ref('Hello vue!');
          const arr = ref([]);
          for (let i = 0; i < 1000; i++) {
            arr.value.push(i);
          }
          return {
            message,
            arr,
          };
        },
      }).mount('#app');
    </script>
  </body>
</html>
